import { http } from "@/utils/http";

export type AddNewPrjResult = {
  code: number;
  data: {
    /** 项目ID */
    prj_id: number;
  };
  message: string;
};

export type GetPrjListResult = {
  code: number;
  data: [

  ];
  message: string;
}

/** 新增项目 */
export const addNewPrj = (data?: object) => {
  return http.request<AddNewPrjResult>("post", "/dcc/api/prj_info/add_prj", { data });
};

/** 获取项目列表 */
export const getPrjList = (data?: object) => {
  return http.request<GetPrjListResult>("post", "/dcc/api/prj_info/get_prj_list", {
    data
  });
};
